<table border ="1">
    <tr>
        <th>Sr. No</th>
        <th>Name</th>
        <th>Address</th>
    </tr>
    <?php $i = 1;?>
    <?php foreach ($this->userData as $user) : ?>
            <tr>
                <td><?php echo $i++;?></td>
                <td><?php echo $user['name']?></td>
                <td><?php echo $user['address']?></td>
            </tr>
    <?php endforeach; ?>
</table>